//
//  UIBarButtonItem+Category.h
//  Beautiful Travel
//
//  Created by Apple on 16/1/21.
//  Copyright © 2016年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void (^UIBarButtonItemBlock)(UIBarButtonItem * item);
@interface UIBarButtonItem (Category)
+ (instancetype) itemWithImage:(UIImage *)image style:(UIBarButtonItemStyle)style action:(UIBarButtonItemBlock) block;
+ (instancetype) itemWithImageName:(NSString *)imageName style:(UIBarButtonItemStyle)style action:(UIBarButtonItemBlock) block;
+ (instancetype) itemWithTitle:(NSString *)title style:(UIBarButtonItemStyle)style action:(UIBarButtonItemBlock) block;
+ (instancetype) itemWithView:(UIView *) view action :(UIBarButtonItemBlock)block;
@end
